// source --> http://211.104.35.193:81/conpo/wp-content/plugins/bbs-e-popup/js/bbse-popup-common.js?ver=5.1.6 jQuery(document).ready(function(){ //오늘 하루 보지 않기 jQuery('input[name=bbse_popup_nomore]').change(function(){ var $name = jQuery(this).val(); var check = CookieForBbsePopup.get ($name); var type = jQuery(this).data('type'); var pIdx = jQuery(this).data('pidx'); switch(type){ case 'Today' : { if ( check != 'Today' || !check ){ CookieForBbsePopup.set ($name , 'Today' , { expires_day : 1, }); jQuery('#btn-popup-' + pIdx).click(); } } case 'Minute' : { if ( check != 'Minute' || !check ){ CookieForBbsePopup.set ($name , 'Minute' , { expires_minute : 30, }); jQuery('#btn-popup-' + pIdx).click(); } } } }); jQuery(window).resize(function(){ var $screen = jQuery(window).width(); if ($screen < 1023){ jQuery(".bbse-layer-popup").fadeOut(); jQuery(".bbse-layer-popup").html(""); } }); /*event*/ jQuery(".bannerBtn").mouseover(function() { var no=jQuery(this).data("no"); for(j=1;j<7;j++){ jQuery("#banner"+j).css("display","none"); } jQuery("#banner"+no).css("display","block"); jQuery(".bannerBtn").css("background", "#acacac"); jQuery(this).css("background", "#ff7659"); }); /*event*/ /*v2.1.5 : photo*/ var photoN = 1; var $photoSlider_w = jQuery('#photoPopup-slide li').outerWidth(); var $photoSlider = jQuery('#photoPopup-slide ul'); var $photoPopup_w =$photoSlider.outerWidth(); jQuery('#photoPopup-slide li:first').clone().appendTo(jQuery('#photoPopup-slide ul')); jQuery('#phptoBreadcrumb li:first').children('.Popup-hover').css('display','block'); jQuery('#phptoBreadcrumb li:first').addClass('show'); jQuery('#PhotoBtn-next').click(function(){ photoN+=1 ; if(photoN==4){ $photoSlider.css('left',0); photoN=2; }; $photoSlider.stop().animate({'left':(photoN-1)*-$photoSlider_w}); jQuery('#phptoBreadcrumb li').children('.Popup-hover').css('display','none'); jQuery('#popup-btn'+photoN).children('.Popup-hover').css('display','block'); if(photoN==3){ jQuery('#popup-btn1').children('.Popup-hover').css('display','block'); }; }); jQuery('#PhotoBtn-prev').click(function(){ photoN-=1 ; if(photoN==0){ $photoSlider.css('left',-$photoPopup_w + $photoSlider_w); photoN=2 }; $photoSlider.stop().animate({'left':(photoN-1)*-$photoSlider_w}); jQuery('#phptoBreadcrumb li').children('.Popup-hover').css('display','none'); jQuery('#popup-btn'+photoN).children('.Popup-hover').css('display','block'); }); jQuery('#phptoBreadcrumb li').click(function(){ photoN=parseInt(jQuery(this).attr('data-now')); $photoSlider.animate({'left':(photoN-1)*-$photoSlider_w}); jQuery('#phptoBreadcrumb li').children('.Popup-hover').css('display','none'); jQuery('#phptoBreadcrumb li').removeClass('show'); jQuery(this).addClass('show'); jQuery(this).children('.Popup-hover').css('display','block'); }); jQuery('#phptoBreadcrumb li').hover(function(){ jQuery(this).children('.Popup-hover').css('display','block'); },function(){ if(jQuery(this).hasClass('show')){ jQuery(this).children('.Popup-hover').css('display','block'); }else{ jQuery(this).children('.Popup-hover').css('display','none'); } }); /*v2.1.5 : photo*/ }); var CookieForBbsePopup ={ cookie_arr : null, set : function (name,value,options){ options = options || {}; this.cookie_arr = [escape(name) + '=' + escape(value)]; //-- expires if (options.expires){ if( typeof options.expires === 'object' && options.expires instanceof Date ){ var date = options.expires; var expires = "expires=" + date.toUTCString(); this.cookie_arr.push (expires); } } else if (options.expires_day) this.set_expires_date (options.expires_day , 24*60*60); else if (options.expires_hour) this.set_expires_date (options.expires_hour , 60*60); else if (options.expires_minute) this.set_expires_date (options.expires_minute , 60); //-- domain if (options.domain){ var domain = "domain=" + options.domain; this.cookie_arr.push (domain); } //-- path if (options.path){ var path = 'path=' + options.path; this.cookie_arr.push (path); } //-- secure if( options.secure === true ){ var secure = 'secure'; this.cookie_arr.push (secure); } document.cookie = this.cookie_arr.join('; '); }, get : function (name){ var nameEQ = escape(name) + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++){ var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return unescape(c.substring(nameEQ.length,c.length)); } return null; }, del : function (name , options){ options = options || {}; options.expires_day = -1; this.set ( name , '' , options ); }, set_expires_date : function (expires , time){ var date = new Date(); date.setTime(date.getTime()+(expires*time*1000)); var expires = "expires=" + date.toUTCString(); this.cookie_arr.push (expires); } }; var popup_view=function(pIdx,pAlign,inEffe,outEffe,pSize){ var WindowInnerWidth=jQuery(window).innerWidth(); if(WindowInnerWidth http://211.104.35.193:81/conpo/wp-content/plugins/mangboard/plugins/datepicker/js/datepicker.js?ver=1.7.7 jQuery(function($){ if($.datepicker && $.datepicker.regional){ $.datepicker.regional["ko"] = { closeText: "닫기", prevText: "이전달", nextText: "다음달", currentText: "오늘", monthNames: ["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)", "7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"], monthNamesShort: ["1월","2월","3월","4월","5월","6월", "7월","8월","9월","10월","11월","12월"], dayNames: ["일","월","화","수","목","금","토"], dayNamesShort: ["일","월","화","수","목","금","토"], dayNamesMin: ["일","월","화","수","목","금","토"], weekHeader: "Week", dateFormat: "yymmdd", firstDay: 0, isRTL: false, showMonthAfterYear: true, yearSuffix: "" }; $.datepicker.setDefaults($.datepicker.regional["ko"]); } }); jQuery(document).ready(function() { if(jQuery(".show-datepicker").datepicker) jQuery(".show-datepicker").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-100:c+10"}); }); // source --> http://211.104.35.193:81/conpo/wp-content/plugins/mangboard/plugins/popup/js/main.js?ver=1.7.7 jQuery( document ).ready(function() { //팝업 태그를 body에 추가 var popup_html = ""; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; popup_html = popup_html+'
'; jQuery("body").append(popup_html); }); var confirmCallbackSend; var confirmCallbackCancel; var alertCallbackSend; var popupCallbackData; var select_menu = ""; var eventX = 0; var eventY = 0; var scrollMode = true; function setPopupScrollEvent(){ jQuery(window).on({ 'mousewheel': function(e){ if(scrollMode) setPopupPosition("scroll"); },'scroll': function(e){ if(scrollMode) setPopupPosition("scroll"); } }) } function setPopupPosition(mode){ if(typeof(mode)!=='undefined' && mode=="scroll" && jQuery("#mb_pop_bg").css('display')=='none') return; var popupObj = jQuery("#mb_pop_confirm"); popupObj.css('left',(jQuery(window).width()-popupObj.outerWidth())/2); popupObj.css('top',(jQuery(document).scrollTop()+(jQuery(window).height()-popupObj.outerHeight())/2)-20); popupObj = jQuery("#mb_pop_alert"); popupObj.css('left',(jQuery(window).width()-popupObj.outerWidth())/2); popupObj.css('top',(jQuery(document).scrollTop()+(jQuery(window).height()-popupObj.outerHeight())/2)-20); popupObj = jQuery("#mb_pop_info"); popupObj.css('left',(jQuery(window).width()-popupObj.outerWidth())/2); popupObj.css('top',(jQuery(document).scrollTop()+(jQuery(window).height()-popupObj.outerHeight())/2)); popupObj = jQuery("#mb_pop_html"); if(popupObj.height()>=jQuery(window).height() || popupObj.outerWidth()>=jQuery(window).width()){ popupObj.css('position','fixed'); popupObj.css('height',"100%"); popupObj.css('top',0); popupObj.css('left',0); scrollMode = false; jQuery('body').css('overflow-y','hidden'); }else{ popupObj.css('position','absolute'); popupObj.css('top',(jQuery(document).scrollTop()+(jQuery(window).height()-popupObj.outerHeight())/2)); popupObj.css('left',(jQuery(window).width()-popupObj.outerWidth())/2); } } setPopupScrollEvent(); function showConfirmPopup(message,data,send,cancel) { popupCallbackData = data; confirmCallbackSend = send; if(typeof(cancel)==='undefined') confirmCallbackCancel = hidePopupBox; else confirmCallbackCancel = cancel; //위치 설정 var pop_head = ''; var pop_body = ''; if(typeof(data)!=='undefined' && typeof(data.type)!=='undefined' && data.type=="passwd"){ pop_head = '
'+message+'
'; pop_body = pop_body+'
'; pop_body = pop_body+'
'; pop_body = pop_body+'
'; }else{ pop_head = '

Message

'+message+'

'; } pop_body = pop_body+'
'; pop_body = pop_body+''+mb_languages["btn_cancel"]+''; pop_body = pop_body+''+mb_languages["btn_ok"]+''; pop_body = pop_body+'
'; if(typeof(data)!=='undefined'){ if(typeof(data.head)!=='undefined') pop_head = data.head; if(typeof(data.body)!=='undefined') pop_body = data.body; } showPopupBox("Confirm",pop_head,pop_body); } function showAlertPopup(response,send){ if(!response || typeof(response)==='undefined') return; var code = ""; var message = ""; var target_name = ""; if(typeof(send)==='undefined') alertCallbackSend = null; else alertCallbackSend = send; if(typeof(response.code)!=='undefined') code = response.code; if(typeof(response.message)!=='undefined') message = response.message; if(typeof(response.target_name)!=='undefined') target_name = response.target_name; if(message=="") return; var pop_head = '

Message

'+message+'

'; var pop_body = ''; pop_body = pop_body+'
'; pop_body = pop_body+''+mb_languages["btn_ok"]+''; pop_body = pop_body+'
'; showPopupBox("Alert",pop_head,pop_body); } function showPopupBox(type,head,body,data){ scrollMode = true; initLoadingBox(); var popupID = "#mb_pop_confirm"; if(type=="Alert"){ popupID = "#mb_pop_alert"; if(jQuery("#mb_pop_bg").css('display')=='none') jQuery("#mb_pop_confirm").hide(); setTimeout(function(){ jQuery(popupID).addClass("mb-ani-pop-open"); }, 1); }else if(type=="Info"){ popupID = "#mb_pop_info"; }else if(type=="Confirm"){ popupID = "#mb_pop_confirm"; setTimeout(function(){ jQuery(popupID).addClass("mb-ani-pop-open"); }, 1); }else if(type=="Html"){ popupID = "#mb_pop_html"; }else{ popupID = "#mb_pop_alert"; setTimeout(function(){ jQuery(popupID).addClass("mb-ani-pop-open"); }, 1); } if(typeof(data)==='undefined') data = {}; if(typeof(data.position)==='undefined') data.position = "center"; if(typeof(data.bg)==='undefined') data.bg = true; if(typeof(data.eventX)==='undefined') data.eventX = 0; if(typeof(data.eventY)==='undefined') data.eventY = 0; jQuery(popupID+"_head").html(head); jQuery(popupID+"_body").html(body); var adminbarHeight = jQuery("#wpadminbar").height(); if(adminbarHeight==null || typeof(adminbarHeight)==='undefined') adminbarHeight = 0; if(data.position=="click"){ jQuery(popupID).css("top",parseInt((data.eventY+jQuery(document).scrollTop()-adminbarHeight)/10)*10-7); jQuery(popupID).css("left",parseInt(data.eventX/10)*10+30); }else{ setPopupPosition(); } if(data.bg) showPopupBG(); jQuery(popupID).show(); if(type=="Alert"){ jQuery("#mb_pop_alert_ok").focus(); }else if(type=="Confirm"){ jQuery("#mb_confirm_passwd").focus(); } } function initLoadingBox(){ jQuery("#mb_pop_html_head").html(""); jQuery("#mb_pop_html_body").html(""); } function showLoadingBox(){ showPopupBox("Html",'','
Loading
'); } function hideLoadingBox(){ initLoadingBox(); if(jQuery("#mb_pop_alert").css('display')=='none' && jQuery("#mb_pop_confirm").css('display')=='none'){ jQuery("#mb_pop_bg").hide(); } } function showPopupBG(){ hideInfoBox(); jQuery('#mb_pop_bg').height(jQuery(document).height()); jQuery("#mb_pop_bg").show(); } function getUserMenu(uid,pid){ var menu_options = "*"; if(select_menu==uid+"_"+pid){ select_menu = ""; hideInfoBox(); }else{ sendUserMenu(uid,pid,menu_options,event); select_menu = uid+"_"+pid; } } function showUserMenu(data){ var menu_head = data["head"]; var menu_body = ""; var menu_foot = data["foot"]; menu_head = menu_head+'
'+data["user"]["name"]+'
'; menu_body = ''; showPopupBox("Info","",('
'+menu_head+menu_body+menu_foot+"
"),{"position":"click","bg":false,"eventX":eventX,"eventY":eventY}); } } function sendUserMenu(uid,board_pid,option,event){ if(typeof(event)!=='undefined'){ eventX = event.clientX; eventY = event.clientY; } if(option=="*") option = "search,info,email,homepage,blog"; var param = "board_name="+mb_options["board_name"]+"&option="+option+"&list_type="+mb_options["list_type"]+"&page="+mb_options["page"]; if(jQuery('#'+mb_options["board_name"]+'_form_board_search')) param += "&"+jQuery('#'+mb_options["board_name"]+'_form_board_search').serialize(); param += "&mode=user&board_action=menu"+"&pid="+uid+"&board_pid="+board_pid; sendDataRequest(mb_urls["template_api"], param, sendUserMenuHandler); } function sendUserMenuHandler(response, state){ if(response.state == "success"){ showUserMenu(response.data); }else{ showAlertPopup(response); } } function hideInfoBox() { jQuery("#mb_pop_info").hide(); } function hidePopupBox() { confirmCallbackSend = null; jQuery(".input-focus").removeClass("input-focus"); jQuery("#mb_pop_info").hide(); jQuery("#mb_pop_html").hide(); jQuery("#mb_pop_confirm").hide(); jQuery("#mb_pop_confirm").removeClass("mb-ani-pop-open"); jQuery("#mb_pop_alert").removeClass("mb-ani-pop-open"); jQuery("#mb_pop_bg").hide(); if(!scrollMode){ jQuery('body').css('overflow-y','auto'); scrollMode = true; } } function showAlertCallback(code,target_name) { hidePopupAlert(code,target_name); sendAlertCallbackData(); } function hidePopupAlert(code,target_name) { if(typeof(code)!=='undefined' && code!=='undefined'){ if(confirmCallbackSend) jQuery("#mb_pop_confirm").show(); if(code.substr(0,2)=="12"){ //입력 관련 에러일 경우 포커스 설정 var target; if(jQuery("#mb_pop_confirm").css('display')!='none'){ if(target_name!="") target = jQuery("#mb_confirm_form").find("input[name="+target_name+"]"); }else{ target = document.getElementsByName(target_name); } jQuery(".input-focus").removeClass("input-focus"); if(typeof(target)!=='undefined'){ jQuery(target).addClass("input-focus"); jQuery(target).focus(); } } }else{ jQuery(".input-focus").focus(); } jQuery("#mb_pop_alert").hide(); jQuery("#mb_pop_alert").removeClass("mb-ani-pop-open"); jQuery("#mb_pop_html").hide(); jQuery("#mb_pop_info").hide(); if(jQuery("#mb_pop_confirm").css('display')=='none'){ jQuery("#mb_pop_bg").hide(); initLoadingBox(); } if(!scrollMode){ jQuery('body').css('overflow-y','auto'); scrollMode = true; } } function sendAlertCallbackData() { if(alertCallbackSend) alertCallbackSend(); else alertCallbackSend = null; } function sendConfirmCallbackData() { showLoadingBox(); jQuery("#mb_pop_confirm").hide(); if(confirmCallbackSend) confirmCallbackSend(popupCallbackData); else confirmCallbackSend = null; } function cancelConfirmCallbackData() { confirmCallbackSend = null; if(confirmCallbackCancel) confirmCallbackCancel(); else confirmCallbackCancel = null; };